package com.loukou.lkt.lkt.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import com.loukou.lkt.lkt.entity.Warehouse;


public interface WarehouseDao  extends CrudRepository<Warehouse, Integer>, JpaSpecificationExecutor<Warehouse>{
   
   List<Warehouse> findByWarehouseState(int warehouseState);
   
   Warehouse findByWarehouseCode(String warehouseCode);
   
   Warehouse findByWarehouseId(int warehouseId);

   List<Warehouse> findByWarehouseStateAndWarehouseIdIn(int warehouseState,List<Integer> warehouseIds);

}
